import Icon from 'common/components/icon';
let {AppBar,Paper,LinearProgress,Tabs,Tab,IconButton} = mui;
let ThemeManager = new mui.Styles.ThemeManager()

export default class Navbar extends React.Component{
	constructor(){
		super();
		this.state = {};
	}
	static defaultProps = {
		title:'EyasWeb',
		icon:'fa fa-bars'
	}
	getChildContext() {
    return {
      muiTheme: ThemeManager.getCurrentTheme()
    };
  }

	render(){
		return (
			<Paper zDepth={1}>
				<AppBar title={this.props.title} iconElementLeft={<IconButton iconClassName={this.props.icon}></IconButton>}>
					{this.props.children}
				</AppBar>
			</Paper>
			
		)
	}
}
Navbar.childContextTypes = {
	muiTheme: React.PropTypes.object
}
